
export LANG=zh_CN.GB2312
export LC_ALL=zh_CN.GB2312
export PATH="/opt/xmingw/wxWidgets/bin/:/opt/xmingw/bin:/opt/xmingw/i386-mingw32msvc/bin:$PATH"
export CC="i386-mingw32msvc-gcc"
export CXX="i386-mingw32msvc-g++"
unset CFLAGS
unset CPPFLAGS
unset CXXFLAGS
export LIBS="-L/opt/xmingw/lib -losip2 -losipparser2  -lws2_32"
export CFLAGS="-DHAVE_CONFIG_H -I/opt/xmingw/i386-mingw32msvc/include -I/opt/xmingw/include"
export CXXFLAGS="-DOSIP_MT -DHAVE_CONFIG_H -I/opt/xmingw/i386-mingw32msvc/include -I/opt/xmingw/include -I/opt/xmingw/include/osip2"
if [ "$#" == 0 ] 
then
	make distclean
fi
i386-mingw32msvc-windres  -I/opt/xmingw/wxWidgets/include/wx-2.6 SipTestTool.rc -o SipTestToolRes.o
make SipTestTool.exe
chmod a-x SipTestTool.exe zh_CN/SipTestTool.mo
if [ "$#" == 0 ] 
then
	i386-mingw32msvc-strip SipTestTool.exe
	make clean
fi
make win32dist


